import request from '@/plugins/axios'

//考核模块
export function fetchList(query) {
    return request({
        url: '/api/assesstemplate/page',
        method: 'get',
        params: query
    })
}

export function delObj(id) {
    return request({
        url: '/api/assesstemplate/' + id,
        method: 'delete'
    })
}

export function addObj(obj) {
    return request({
        url:'/api/assesstemplate',
        method:'post',
        data:obj,
    })
}
export function editObj(obj) {
    return request({
        url:'/api/assesstemplate',
        method:'put',
        data:obj,
    })
}

export function getObj(id) {
    return request({
        url:'/api/assesstemplate/'+id,
        method:'get',
    })
}



